package DP.command.pm;

import DP.command.pm.comm.Command;
import DP.command.pm.comm.impl.AddRequirementCommand;
import DP.command.pm.comm.impl.DeletePageCommand;
import DP.command.pm.invoker.Invoker;

/**
 * @author msi
 * 场景类
 */
public class Client {
    public static void main(String[] args) {
        Invoker invoker=new Invoker();
        Command command=new AddRequirementCommand();
        Command command1=new DeletePageCommand();
        invoker.setCommand(command);
        invoker.action();
        invoker.setCommand(command1);
        invoker.action();
    }
}
